import dotenv from 'dotenv';
import Mongoose from "mongoose";

dotenv.config()

const schema = Mongoose.Schema;

// import { DB_NANE, DB_USER, DB_PASS } from '.env';

Mongoose.connect(`mongodb://${process.env.DB_USER}:${process.env.DB_PASS}@localhost:27017/`, { dbName: process.env.DB_NANE }).then(() => {
  console.log('connect!');
});
